package com.tian.user.controller;


import com.tian.common.result.BaseResult;
import com.tian.common.result.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <pre>
 *     用户名密码登录相关接口
 * </pre>
 *
 * @author zhump
 */

@Controller
public class LoginController {


    @RequestMapping(value = "/login",method = RequestMethod.POST)
    @ResponseBody
    public BaseResult<String> loginPost(){
        return Result.ok("登录成功");
    }

    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String loginGet(){
        return "index";
    }

}
